
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-111"></use>
                    </svg>
                    <div class="name">专家</div>
                    <div class="fontclass">#cy-111</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shuju"></use>
                    </svg>
                    <div class="name">数据</div>
                    <div class="fontclass">#cy-shuju</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-iconfontanquanbaozhang"></use>
                    </svg>
                    <div class="name">保障</div>
                    <div class="fontclass">#cy-iconfontanquanbaozhang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shenhe"></use>
                    </svg>
                    <div class="name">审核</div>
                    <div class="fontclass">#cy-shenhe</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shanchu"></use>
                    </svg>
                    <div class="name">删除</div>
                    <div class="fontclass">#cy-shanchu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-xiangmushenbaoguanli"></use>
                    </svg>
                    <div class="name">项目申报</div>
                    <div class="fontclass">#cy-xiangmushenbaoguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-yaoqing"></use>
                    </svg>
                    <div class="name">邀请</div>
                    <div class="fontclass">#cy-yaoqing</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-fujian"></use>
                    </svg>
                    <div class="name">附件</div>
                    <div class="fontclass">#cy-fujian</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-toubiao1"></use>
                    </svg>
                    <div class="name">投标1</div>
                    <div class="fontclass">#cy-toubiao1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-zhuizong"></use>
                    </svg>
                    <div class="name">追踪</div>
                    <div class="fontclass">#cy-zhuizong</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-fenlei"></use>
                    </svg>
                    <div class="name">分类</div>
                    <div class="fontclass">#cy-fenlei</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shenhetongguo"></use>
                    </svg>
                    <div class="name">审核通过</div>
                    <div class="fontclass">#cy-shenhetongguo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-dayin"></use>
                    </svg>
                    <div class="name">打印</div>
                    <div class="fontclass">#cy-dayin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shenhe1"></use>
                    </svg>
                    <div class="name">审核</div>
                    <div class="fontclass">#cy-shenhe1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shigongjinzhan"></use>
                    </svg>
                    <div class="name">施工进展</div>
                    <div class="fontclass">#cy-shigongjinzhan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shiwu-chuizi"></use>
                    </svg>
                    <div class="name">实物-锤子</div>
                    <div class="fontclass">#cy-shiwu-chuizi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-kaibiaopingbiao-shi"></use>
                    </svg>
                    <div class="name">开标评标-实</div>
                    <div class="fontclass">#cy-kaibiaopingbiao-shi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shenpiguanli"></use>
                    </svg>
                    <div class="name">审查论证</div>
                    <div class="fontclass">#cy-shenpiguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-ziyuanxuqiubiao"></use>
                    </svg>
                    <div class="name">资源需求表</div>
                    <div class="fontclass">#cy-ziyuanxuqiubiao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-dingdanjinzhan"></use>
                    </svg>
                    <div class="name">订单进展</div>
                    <div class="fontclass">#cy-dingdanjinzhan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-fabu"></use>
                    </svg>
                    <div class="name">发布</div>
                    <div class="fontclass">#cy-fabu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-examine"></use>
                    </svg>
                    <div class="name">审核</div>
                    <div class="fontclass">#cy-examine</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-xiangmu"></use>
                    </svg>
                    <div class="name">项目</div>
                    <div class="fontclass">#cy-xiangmu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-renzhengshenhe_huaban"></use>
                    </svg>
                    <div class="name">认证审核</div>
                    <div class="fontclass">#cy-renzhengshenhe_huaban</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-ic_edit"></use>
                    </svg>
                    <div class="name">编辑</div>
                    <div class="fontclass">#cy-ic_edit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-weituo"></use>
                    </svg>
                    <div class="name">委托</div>
                    <div class="fontclass">#cy-weituo</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-yanshouqueren"></use>
                    </svg>
                    <div class="name">验收确认</div>
                    <div class="fontclass">#cy-yanshouqueren</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shezhi"></use>
                    </svg>
                    <div class="name">设置</div>
                    <div class="fontclass">#cy-shezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-xitongguanli"></use>
                    </svg>
                    <div class="name">系统管理</div>
                    <div class="fontclass">#cy-xitongguanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-pingbiaozhuanjia"></use>
                    </svg>
                    <div class="name">评标专家</div>
                    <div class="fontclass">#cy-pingbiaozhuanjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-guanli"></use>
                    </svg>
                    <div class="name">管理1</div>
                    <div class="fontclass">#cy-guanli</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-fenlei1"></use>
                    </svg>
                    <div class="name">分类</div>
                    <div class="fontclass">#cy-fenlei1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-daoru"></use>
                    </svg>
                    <div class="name">导入</div>
                    <div class="fontclass">#cy-daoru</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-daochu"></use>
                    </svg>
                    <div class="name">导出</div>
                    <div class="fontclass">#cy-daochu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-xiangmutongji"></use>
                    </svg>
                    <div class="name">项目统计</div>
                    <div class="fontclass">#cy-xiangmutongji</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shenhe2"></use>
                    </svg>
                    <div class="name">审核</div>
                    <div class="fontclass">#cy-shenhe2</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-tianjia"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#cy-tianjia</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-tianjia-"></use>
                    </svg>
                    <div class="name">添加</div>
                    <div class="fontclass">#cy-tianjia-</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#cy-shenhe3"></use>
                    </svg>
                    <div class="name">审核</div>
                    <div class="fontclass">#cy-shenhe3</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#cy-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
